<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<html>
<%@ include file="/WEB-INF/core/common/top.jsp" %>
<title>KTV Publish Platform</title>
	<head> 
	<script language="javascript">
	  function new1(){	  
	  	
	  	if(loginForm.j_username.value==""){
	  		alert("<s:text name='login.user.name.not.null'/>");
	  		return;
	  	}
	  	if(loginForm.j_password.value==""){
	  		alert("<s:text name='login.password.not.null'/>");
	  		return;
	  	}
	    document.forms[0].action="${ctx}/j_spring_security_check";
	    document.forms[0].submit();
	  }
	   
	  function lFunKeyDown() {
			if (event.keyCode=='13') {
			  if (event.srcElement.name=="j_password"){
			     new1();
			  }else{
				   event.keyCode='9';
				}
			}
		}

		function userIdFocus(){
    		this.document.forms[0].j_username.focus();
		}
	 
	</script>
	<style type="text/css">
		body {
			background-color: #FFFFFF;
		}
		.STYLE2 {font-size: 8.5pt}
	</style>	
</head>
<body onload="userIdFocus();" onkeydown="lFunKeyDown()" style="margin-top:0px;overflow:hidden;">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="130" background="${ctx}/core/images/login_13.gif"></td>
      </tr>
	  <tr><td height="70%">
	  <div align="center" valign="top">
<table width="484" height="302" cellpadding="0" cellspacing="0">
					<tr>
						<td colspan="2"><img src="${ctx}/core/images/login_1.gif" width="347" height="54"></td></tr>
					<tr>
						<td valign="top">
							<table width="484" cellpadding="0" cellspacing="0">
								<tr>
								  <td align="left" valign="top"><table width="484" height="153" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                      <td height="40"><img src="${ctx}/core/images/login_2.gif" width="484" height="40"></td>
                                    </tr>
                                    <tr>
                                      <td height="20" align="center" background="${ctx}/core/images/login_3.gif" class="white">${cepLicenseVersion}</td>

                                    </tr>
                                    <tr>
                                      <td height="27"><img src="${ctx}/core/images/login_4.gif" width="484" height="27"></td>
                                    </tr>
                                    <tr>
                                      <td height="33"><img src="${ctx}/core/images/login_5.gif" width="484" height="33"></td>
                                    </tr>
                                    <tr>
                                      <td height="40"><img src="${ctx}/core/images/login_6.gif" width="484" height="40"></td>
                                    </tr>
                                  </table></td>
								</tr>
								<form  method="post" name="loginForm">
								  <input type="hidden" name="act" value="login">									
								<tr>
									<td valign="top" align="left" class="login_bottom_bg">
										<table height="129" width="482" cellpadding="0" cellspacing="0">	
										    <tr>
                                               <td width="185" rowspan="4" align="center" valign="top">
                                                 <img src="${ctx}/core/images/login_8.gif" width="137" height="110"/>
                                               </td>
                                               <td colspan="2" height="25" align="center"><font  color="red"><s:property value="#request.error_message" />&nbsp;</font></td>
                                               <td colspan="3">&nbsp;</td>
                                            </tr>										    								    
											<tr>
												<td height="25" align="right" valign="bottom"><s:text name="label.UserName"></s:text></td>
												<td width="150" align="left" valign="bottom"> 
                                                      &nbsp;&nbsp;<input type="text" name="j_username" class="login_textbox_css" value="" style="width:130px;"><%-- ${loginName?if_exists} --%>
											  　 </td>
											    <td width="87" rowspan="2" align="center" valign="bottom">
											                  <table width="43" height="50" border="0" cellpadding="0" cellspacing="0">
											                    <tr>
											                      <td valign="middle" style="cursor:hand;"><img src="${ctx}/core/images/login_10.gif" width="43" height="40" border="0" onClick="new1()"></td>
											                    </tr>
											                  </table>
						                         </td>
											</tr>
											<tr>
												<td height="25" align="right" valign="bottom"><s:text name="label.Password"></s:text></td>
												<td align="left" valign="bottom">
                                                   &nbsp;&nbsp;<input name="j_password" type="password" class="login_textbox_css" value="" style="width:130px;">
												</td>
										    </tr>											
											<tr>
											    <td colspan="3" align="left" valign="bottom">
											       <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                                                      <tr>
                                                         <td height="22" colspan="2" background="${ctx}/core/images/login_16.gif"></td>
                                                      </tr>
                                                      <tr>
                                                         <td height="30" align="center" valign="middle" class="hui">Tomorrow Workroom</td>
                                                         <td width="18%"></td>
                                                      </tr>
                                                    </table>
                                                  </td>
										      </tr>
									       </table>
									    </td>
								     </tr>
								<form>
						  </table></td>
						  <td width="30" valign="bottom"><img src="${ctx}/core/images/login_12.gif" width="30" height="170"></td>
			</tr>
						<tr>
						<td height="4" bgcolor="#DBDBDB"></td></tr>
		  </table>
		</div></td>
					</tr>
				<tr>
				<td height="226" align="center" background="${ctx}/core/images/login_14.gif"><img src="${ctx}/core/images/login_15.gif" width="715" height="226"></td>
      </tr></table>
      
	</body>
</html>
